package net.xinshi.domain;

import net.xinshi.utils.ErrorCode;

import java.io.Serializable;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/29.
 */
public class JSONResponseObj  implements Serializable {
    private static final long serialVersionUID = -1923306703732970139L;

    private String code;

    private String msg;

    private Object data;

    public JSONResponseObj() {
        super();
        this.code = ErrorCode.SUCCESS.getCode();
        this.msg = ErrorCode.SUCCESS.getMsg();
    }

    public JSONResponseObj(String code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
